<?php /*a:1:{s:50:"/home/wwwpay/wwpayu/app/api/view/zhaopin/link.html";i:1703149541;}*/ ?>
<!DOCTYPE html>
<html lang="zh">
<head>
	<meta charset="UTF-8">
	<meta name="viewport" content="width=device-width, initial-scale=1.0">
	<title>帕羽科技-岗位自评</title>
	<link rel="stylesheet" href="/static/zhaopin/css/element.css">
	<link rel="stylesheet" href="/static/zhaopin/css/index.css">
	<script src="/static/zhaopin/js/vue.js"></script>
	<script src="/static/zhaopin/js/element.js"></script>
	<script src="/static/zhaopin/js/jquery.js"></script>
</head>
<body>
	<div id="app">
		<div class='title'>帕羽科技-自评登录</div>
		
		<div class='neirong'>
			<p>注意事项</p>
			<span>1、帕羽科技不向任何第三方及公司内部无关人员泄露候选人的个人信息，所有线上资料将严格保管于平台数据库，仅为公司招聘和内部管理使用。</span>
			<span>2、候选人应保证求职过程中填写信息均真实完整。</span>
		</div>
		<div class='biaodan'>
			<el-form :label-width='shouji?"100px":"190px"'>
				<el-form-item label='姓名' style="margin-left: 130px;">
					<el-input placeholder='请输入姓名'  v-model='uname' style='width:200px;'></el-input>
				</el-form-item>
				<el-form-item label='身份证号' style="margin-left: 130px;">
					<el-input placeholder='请输入身份证号'  v-model='id_card' style='width:200px;'></el-input>
				</el-form-item>
			</el-form>
			
			<el-button type='success' @click="sub" style='width:200px;margin: 20px 225px;display:block;'>确认</el-button>
		</div>
	</div>
	<script>
		var shouji=false
		if(document.body.clientWidth>720){
			shouji=false
		}else{
			shouji=true
		}
		new Vue({
		    el: '#app',
		    data: function() {
				return {
					uname:'',
					id_card:'',
					shouji:shouji
				}
		    },
			methods:{
				sub(){
					var that = this;
						let uname = this.uname;
						console.log(uname)
						let id_card = this.id_card;
						if(uname ==''){
							that.$message({
								message: '请填写姓名',
								type: 'warning'
							});
						}
						if(id_card ==''){
							that.$message({
								message: '请填写身份证号',
								type: 'warning'
							});
						}
						$.ajax({
						async: true,
						url: '/Zhaopin/getInfo',
						type: 'post',
						data : { name : uname ,id_card:id_card},
						dataType: 'json',
						timeout: 30000,
						success: function(res){
							console.log(res);
							if(res.code == 1){
								window.location.href="/Zhaopin/index1?name="+uname+"&id_card="+id_card
							}else{
								that.$message({
									message: res.msg,
									type: 'warning'
								});
							}

						},
						error: function(res){

						},

					})
				}
			}
		})
	</script>
</body>
</html>